import request from '@/utils/request'

const systemConfig = {
  // 获取系统配置列表
  queryList(data) {
    return request({
      url: '/energy-carbon/grass-core/config/queryPage',
      method: 'post',
      data
    })
  },
  // 新增系统配置
  add(data) {
    return request({
      url: '/energy-carbon/grass-core/config/add',
      method: 'post',
      data
    })
  },
  // 编辑系统配置
  update(data) {
    return request({
      url: '/energy-carbon/grass-core/config/update',
      method: 'post',
      data
    })
  },
  // 删除系统配置
  deleteById(data) {
    return request({
      url: '/energy-carbon/grass-core/config/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/grass-core/config/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除系统配置
  batchDelete(data) {
    return request({
      url: '/energy-carbon/grass-core/config/batchDelete',
      method: 'post',
      data
    })
  }
}

export default systemConfig
